package com.lagou.rpc.consumer;

import com.lagou.rpc.zookeeper.config.ConfigKeeper;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication
public class ClientBootstrapApplication implements CommandLineRunner {

    public static void main(String[] args) {
        ConfigKeeper.getInstance().setConnectString("192.168.150.132:2181");
        ConfigKeeper.getInstance().setConsumerSide(true);
        ConfigKeeper.getInstance().setInterval(5);

        SpringApplication.run(ClientBootstrapApplication.class,args);
    }

    @Override
    public void run(String... args) throws Exception {

    }

}
